package com.zhq.blog.core.domain.game.support;

import javax.persistence.Entity;

import com.zhq.blog.core.domain.BasePersistentDomain;
import com.zhq.blog.core.domain.game.support.AutoBetBase.AutoBetType;

/**
 * @title:Cathectic.java
 * @package com.zhq.blog.core.domain.game.support
 * @author 张恒强
 * @date 2014年12月26日 上午11:54:05
 * @version V1.0
 * 投注表
 */
@Entity
public class Cathectic extends BasePersistentDomain<CathecticRepository>{

	public enum MunualOrAuto{
		MUNUAL("手工投注"),AUTO("自动投注");
		public String description;
		MunualOrAuto(final String description){
			this.description = description;
		}
	}
	
	private long gameId;//游戏类型ID
	private long gamePeriod;//游戏期数
	private long userId;
	private  int betNumber;
	private long betMoney;
	
	private boolean isWinning;//是否中奖
	private boolean isLottery;//是否开奖
	private long winningMoney;//中奖后奖励金币
	
	private MunualOrAuto munualOrAuto;//是否手工投注
	private AutoBetType betType;//自动投注类型
	private long autoBetId;//自动投注ID
	
	
	public Cathectic(long gameId, long gamePeriod, long userId, int betNumber,
			long betMoney, AutoBetType betType, long autoBetId) {
		super();
		this.munualOrAuto = MunualOrAuto.AUTO;
		this.gameId = gameId;
		this.gamePeriod = gamePeriod;
		this.userId = userId;
		this.betNumber = betNumber;
		this.betMoney = betMoney;
		this.betType = betType;
		this.autoBetId = autoBetId;
	}
	public Cathectic() {
		super();
	}
	public long getGameId() {
		return gameId;
	}
	public void setGameId(long gameId) {
		this.gameId = gameId;
	}
	public long getGamePeriod() {
		return gamePeriod;
	}
	public void setGamePeriod(long gamePeriod) {
		this.gamePeriod = gamePeriod;
	}
	public long getUserId() {
		return userId;
	}
	public void setUserId(long userId) {
		this.userId = userId;
	}
	public int getBetNumber() {
		return betNumber;
	}
	public void setBetNumber(int betNumber) {
		this.betNumber = betNumber;
	}
	public long getBetMoney() {
		return betMoney;
	}
	public void setBetMoney(long betMoney) {
		this.betMoney = betMoney;
	}
	public boolean getIsWinning() {
		return isWinning;
	}
	public void setIsWinning(boolean isWinning) {
		this.isWinning = isWinning;
	}
	public boolean getIsLottery() {
		return isLottery;
	}
	public void setIsLottery(boolean isLottery) {
		this.isLottery = isLottery;
	}
	public long getWinningMoney() {
		return winningMoney;
	}
	public void setWinningMoney(long winningMoney) {
		this.winningMoney = winningMoney;
	}
	public MunualOrAuto getMunualOrAuto() {
		return munualOrAuto;
	}
	public void setMunualOrAuto(MunualOrAuto munualOrAuto) {
		this.munualOrAuto = munualOrAuto;
	}
	public AutoBetType getBetType() {
		return betType;
	}
	public void setBetType(AutoBetType betType) {
		this.betType = betType;
	}
	public long getAutoBetId() {
		return autoBetId;
	}
	public void setAutoBetId(long autoBetId) {
		this.autoBetId = autoBetId;
	}
	
	
}
